package com.ruoyi.project.statistics.domain;


import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.framework.web.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

public class Drug extends BaseEntity {
    private Integer drugId;
    private String drugName;
    private long drugNum;
    private double drugPrice;
    private double drugMoney;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss")
    private Date createTime;

    public Drug() {
    }

    public Drug(Integer drugId, String drugName, long drugNum, double drugPrice, double drugMoney, Date createTime) {
        this.drugId = drugId;
        this.drugName = drugName;
        this.drugNum = drugNum;
        this.drugPrice = drugPrice;
        this.drugMoney = drugMoney;
        this.createTime = createTime;
    }

    public Integer getDrugId() {
        return drugId;
    }

    public void setDrugId(Integer drugId) {
        this.drugId = drugId;
    }

    public String getDrugName() {
        return drugName;
    }

    public void setDrugName(String drugName) {
        this.drugName = drugName;
    }

    public long getDrugNum() {
        return drugNum;
    }

    public void setDrugNum(long drugNum) {
        this.drugNum = drugNum;
    }

    public double getDrugPrice() {
        return drugPrice;
    }

    public void setDrugPrice(double drugPrice) {
        this.drugPrice = drugPrice;
    }

    public double getDrugMoney() {
        return drugMoney;
    }

    public void setDrugMoney(double drugMoney) {
        this.drugMoney = drugMoney;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("drugId", getDrugId())
                .append("drugName", getDrugName())
                .append("drugNum", getDrugNum())
                .append("drugPrice", getDrugPrice())
                .append("drugMoney", getDrugMoney())
                .append("remark", getRemark())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .toString();
    }
}

